FROM node:13.14
WORKDIR /opt/oauth2
ADD .next .next
ADD dist dist
ADD package.prod.json package.json
COPY package-lock.json package-lock.json
ADD next.config.prod.js next.config.js
RUN npm config set registry http://repository.aishu.cn:8081/repository/npm-all/
RUN npm install && npm install @anyshare/openapi @anyshare/icons --registry http://repository.aishu.cn:8081/repository/npm-all/
EXPOSE 4015
CMD [ "npm", "start" ]
